<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>正则表达式中重复匹配对原子组的影响</title>
</head>
<body>
    <script>
        let hd = "hddddhdhdhdhdhd";
        let reg = /(hd)+/g;
        console.log(hd.match(reg));

        let tel = "010-9999999";
        let reg1 = /^0\d{2,3}-\d{7,8}$/;
        console.log(tel.match(reg1));
    </script>
</body>
</html>